package com.penghaonan.appframework.utils.monitor;

public class MonitorManager {
    private static GPSMonitor gpsMonitor;
    private static NetworkMonitor networkMonitor;
    private static BrightnessMonitor brightnessMonitor;
    private static SoundMonitor soundMonitor;
    private static BatteryMonitor batteryMonitor;

    public static GPSMonitor getGpsMonitor() {
        if (gpsMonitor == null) {
            gpsMonitor = new GPSMonitor();
        }
        return gpsMonitor;
    }

    public static NetworkMonitor getNetworkMonitor() {
        if (networkMonitor == null) {
            networkMonitor = new NetworkMonitor();
        }
        return networkMonitor;
    }

    public static BrightnessMonitor getBrightnessMonitor() {
        if (brightnessMonitor == null) {
            brightnessMonitor = new BrightnessMonitor();
        }
        return brightnessMonitor;
    }

    public static SoundMonitor getSoundMonitor() {
        if (soundMonitor == null) {
            soundMonitor = new SoundMonitor();
        }
        return soundMonitor;
    }

    public static BatteryMonitor getBatteryMonitor() {
        if (batteryMonitor == null) {
            batteryMonitor = new BatteryMonitor();
        }
        return batteryMonitor;
    }
}
